<%@page import="com.kucun.bean.Users"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"   pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
response.setHeader("Pragma","No-cache"); 
response.setHeader("Cache-Control","no-cache"); 
response.setDateHeader("Expires", 0); 
Users user= (Users)request.getSession().getAttribute("user");
response.flushBuffer();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../css/index.css">
<link rel="stylesheet" type="text/css" href="../jquery-easyui-1.4.5/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../jquery-easyui-1.4.5/themes/icon.css">
<link rel="stylesheet" type="text/css" href="../jquery-easyui-1.4.5/themes/color.css">
<script type="text/javascript" src="../jquery-easyui-1.4.5/jquery.min.js"></script>
<script type="text/javascript" src="../jquery-easyui-1.4.5/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../js/index.js"></script>

<title>欢迎使用资产管理系统</title>
<script type="text/javascript">
  var role="<%=user.getPower()%>";  
  var userid="<%=user.getUserid() %>";
  var ma="<%=user.getPassword() %>"
var path;
	 $(function(){
		 path="<%=basePath%>"; 
		 teixiao(); 
		 
	 });
	 function getDateDemo(){   
             //分别获取年、月、日、时、分、秒  
             var myDate = new Date();  
             var year = myDate.getFullYear();  
             var month = myDate.getMonth() + 1;  
             var date = myDate.getDate();  
             var hours = myDate.getHours();  
             var minutes = myDate.getMinutes();  
             var seconds = myDate.getSeconds();  
               
             //月份的显示为两位数字如09月  
             if(month < 10 ){  
                 month = "0" + month;  
             }  
             if(date < 10 ){  
                 date = "0" + date;  
             }  
               
             //时间拼接  
             var dateTime = year + "年" + month + "月" + date + "日" + hours + "时" + minutes + "分" + seconds + "秒";  
               
             //document.write(dateTime);//打印当前时间  
             $("#dd").remove();
             $("#time").append("<span id='dd'>"+dateTime+"</span>");
           
     }     
     window.setInterval("getDateDemo()",1000);//每隔1秒，调用一次getDateDemo()  
</script>
<style type="text/css">
#sss{
		font-family: 楷体;
		font-size: medium;
        color: purple;
	}
</style>
</head>
<body id="body" class="easyui-layout" fit="true" style="margin: 1px;padding: 0px;"   oncontextmenu="return false" >
	<div id="passwordid" class="easyui-dialog" title="修改密码" style="width:350px;height:210px;"   
	data-options="iconCls:'icon-save',resizable:true,modal:true,closed:true,toolbar:[{
				text:'保存',
				iconCls:'icon-save',
				handler:function(){ savepassword(); }
			},{
				text:'关闭',
				iconCls:'icon-help',
				handler:function(){$('#passwordid').window('close')}
			}]">   
	          <table border=0 style="width: 100%;line-height: 35px;">
              <tr>
                 <td align="right">旧密码：</td>
                 <td><input id="jmm" type="password" style="width:200px"> <span style="color: red;">*</span> </td>
              </tr>
              <tr>
                 <td align="right">新密码：</td>
                 <td><input id="xmm" type="password" style="width:200px"> <span style="color: red;">*</span> </td>
              </tr>
              <tr>
                 <td align="right">确认密码：</td>
                 <td><input id="qrmm" type="password" style="width:200px"> <span style="color: red;">*</span> </td>
              </tr>
           </table>  
	</div>  
    <div region="north"  style="height: 78px;background-color: #E0ECFF">
           <table width="100%"  border=0>
                 <tr>
                         <td width="50%"><img alt="" src="<%=basePath%>img/bglogo.png"> </td>
                         <td  nowrap style="white-space:nowrap;word-break:nowrap" align="right"  width="50%">
                         <a href="javascript:void(0);" class="easyui-menubutton" data-options="iconCls:'icon-man'" id="test123456" menu="#layout_north_zxMenu" style="color:black;" >${user.logname} </a> 
                         【${user.username}】
                         【<c:if test="${user.power==1}"> GUST </c:if>
	     <c:if test="${user.power==10}">
	             操作员
	     </c:if>
	     <c:if test="${user.power==100}">
	             超级管理员
	     </c:if>】   
	     <div id="time">当前时间:&nbsp;</div>          
           </td>
                 </tr>
           </table>
    </div>
    <div region="west"  split="true" collapse="true"   title="导航"  style="width:260px;font-size:16px; overflow-x: hidden;" >
     <ul id="tt" class="easyui-tree" data-options="animate:true"> 
      <c:if test="${user.power==100}">  
       <li>   
        <span>系统管理</span>  
        <ul>  
           
            <li id="1001">   
                <span>用户管理</span>   
            </li >
              
            <li id="1002">   
                <span>物品管理</span>   
            </li>
             <li id="1003">   
                <span>客户管理</span>   
            </li>   
            <li id="1004">   
                <span>计量单位</span>   
            </li>  
            <!-- <li id="1005">   
                <span>规格型号</span>   
            </li>  -->
            <li  id="2000"> <span>仓库管理</span> </li>
           
        </ul>   
      </li>
       </c:if>  
      <li>
        <span>库房管理</span>
        <ul>
           
           <li  id="2001"> <span>入库管理</span> </li>
           <li  id="2002"> <span>出库管理</span> </li>
           <li id="2005">    <span>库存盘点</span>    </li> 
            <li id="2003">    <span>使用记录</span>    </li> 
            <!-- <li id="2004">    <span>图表统计</span>    </li>     -->   
            <li id="2006">    <span>图表展示</span>    </li>     
        </ul>
      </li>
</ul>        
  
    </div>  
    <div region="center"  id="centerdiv" split="true"   href="<%=basePath%>page/center.jsp" title="欢迎使用资产管理系统" style="overflow: hidden;">
	</div> 
	
   <div region="south"  id="southdiv" split="true"  collapsed="true" title="版权所有" style="overflow: hidden;height: 80px">
	<CENTER style="PADDING-BOTTOM: 10px; PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 10px" sizset="0" sizcache05640379374704312="95">
	<SPAN style="COLOR: blue; FONT-SIZE: 12px">世纪互联(广州分公司)</SPAN>
	<SPAN style="FONT-SIZE: 12px">版权所有</SPAN> 
	<BR><SPAN style="FONT-SIZE: 12px">Copyright 2010. 21Vianet Group,</SPAN>
	<SPAN style="COLOR: blue; FONT-SIZE: 12px" >
	<A href="http://www.sdlcjt.com/">http://www.ch.21vianet.com/</A></SPAN>
	<SPAN style="FONT-SIZE: 12px"> Inc. All Rights Reserved.</SPAN> 
	</CENTER>
	</DIV>
	
<div id="layout_north_zxMenu" style="width: 100px; display: none;" >
	<!--  <div data-options="iconCls:'icon-edit'" onclick="alert('a')">修改用户名</div>  -->
	 <div data-options="iconCls:'icon-edit'" onclick=" $('#passwordid').window('open') " >修改密码</div>  
	 <div data-options="iconCls:'icon-redo'" onclick="clears('<%=basePath%>')">退出</div>   
</div>
</body>
</html>